package com.base.service.impl;

import com.base.mapper.voipmapper.TbkChoiceListMapper;
import com.base.po.tbk.TbkChoiceList;
import com.base.po.tbk.TbkChoiceListExample;
import com.base.service.TbkChoiceListService;
import com.base.utils.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("tbkChoiceListService")
public class TbkChoiceListServiceImpl implements TbkChoiceListService {
	
	@Autowired
	private TbkChoiceListMapper tbkChoiceListMapper;


	@Override
	public int countByExample(TbkChoiceListExample example) {
		return tbkChoiceListMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(TbkChoiceListExample example) {
		return tbkChoiceListMapper.deleteByExample(example);
	}

	@Override
	public int insert(TbkChoiceList record) {
		return tbkChoiceListMapper.insert(record);
	}

	@Override
	public int insertSelective(TbkChoiceList record) {
		return tbkChoiceListMapper.insertSelective(record);
	}

	@Override
	public List<TbkChoiceList> selectByExample(TbkChoiceListExample example) {
		return tbkChoiceListMapper.selectByExample(example);
	}

	@Override
	public List<TbkChoiceList> selectByActivityId(Page page, String parentid, String activityid) {
		return tbkChoiceListMapper.selectByActivityId(page, parentid, activityid);
	}

	@Override
	public TbkChoiceList selectByPrimaryKey(String id) {
		return tbkChoiceListMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(TbkChoiceList record, TbkChoiceListExample example) {
		return tbkChoiceListMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(TbkChoiceList record, TbkChoiceListExample example) {
		return tbkChoiceListMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(TbkChoiceList record) {
		return tbkChoiceListMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int countByActivityId(String parentid, String activityid) {
		return tbkChoiceListMapper.countByActivityId(parentid, activityid);
	}
}
